package cn.domypay.back.bean;

import java.io.Serializable;

import cn.domypay.back.base.BaseObj;

public class DmpOrderInfo extends BaseObj implements Serializable {
	
	/**
	 * 订单信息对象
	 */
	private static final long serialVersionUID = -3408072970219783136L;
	
	
	private Integer orderId;
	private Integer storeId;
	private String orderSn;
	private Integer userId;
	private String userIp;
	private Integer orderStatus;
	private String consignee;
	private String region;
	private Integer regionId;
	private String address;
	private String zipcode;
	private String email;
	private String officePhone;
	private String homePhone;
	private String mobilePhone;
	private String signBuilding;
	private String bestTime;
	private String postScript;
	private Integer shippingId;
	private String shippingName;
	private Integer payId;
	private String payName;
	private String invPayee;
	private String invContent;
	private String invType;
	private float goodsAmount;
	private float discount;
	private float shippingFee;
	private float insureFee;
	private float payFee;
	private float invFee;
	private Integer points;
	private float pointsValue;
	private String couponSn;
	private float couponValue;
	private float moneyPaid;
	private float orderAmount;
	private Integer fromAd;
	private String referer;
	private Integer addTime;
	private Integer payTime;
	private Integer shipTime;
	private String invoiceNo;
	private String extensionCode;
	private Integer extensionId;
	private String toBuyer;
	private Integer sellerEvaluation;
	private float sellerCredit;
	private Integer buyerEvaluation;
	private float buyerCredit;
	private Integer isAnonymous;
	
	
	private int hashCode = Integer.MIN_VALUE;
	
	//用于根据商品类别的名称查询订单
	private String typeName;
	//商品实价
	private float marketPrice;
	
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public DmpOrderInfo()
	{	}
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getAddTime() {
		return addTime;
	}
	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}
	public String getBestTime() {
		return bestTime;
	}
	public void setBestTime(String bestTime) {
		this.bestTime = bestTime;
	}
	public float getBuyerCredit() {
		return buyerCredit;
	}
	public void setBuyerCredit(float buyerCredit) {
		this.buyerCredit = buyerCredit;
	}
	public Integer getBuyerEvaluation() {
		return buyerEvaluation;
	}
	public void setBuyerEvaluation(Integer buyerEvaluation) {
		this.buyerEvaluation = buyerEvaluation;
	}
	public String getConsignee() {
		return consignee;
	}
	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	public String getCouponSn() {
		return couponSn;
	}
	public void setCouponSn(String couponSn) {
		this.couponSn = couponSn;
	}
	public float getCouponValue() {
		return couponValue;
	}
	public void setCouponValue(float couponValue) {
		this.couponValue = couponValue;
	}
	public float getDiscount() {
		return discount;
	}
	public void setDiscount(Integer discount) {
		this.discount = discount;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getExtensionCode() {
		return extensionCode;
	}
	public void setExtensionCode(String extensionCode) {
		this.extensionCode = extensionCode;
	}
	public Integer getExtensionId() {
		return extensionId;
	}
	public void setExtensionId(Integer extensionId) {
		this.extensionId = extensionId;
	}
	public Integer getFromAd() {
		return fromAd;
	}
	public void setFromAd(Integer fromAd) {
		this.fromAd = fromAd;
	}
	public float getGoodsAmount() {
		return goodsAmount;
	}
	public void setGoodsAmount(float goodsAmount) {
		this.goodsAmount = goodsAmount;
	}
	public String getHomePhone() {
		return homePhone;
	}
	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}
	public float getInsureFee() {
		return insureFee;
	}
	public void setInsureFee(float insureFee) {
		this.insureFee = insureFee;
	}
	public String getInvContent() {
		return invContent;
	}
	public void setInvContent(String invContent) {
		this.invContent = invContent;
	}
	public float getInvFee() {
		return invFee;
	}
	public void setInvFee(float invFee) {
		this.invFee = invFee;
	}
	public String getInvoiceNo() {
		return invoiceNo;
	}
	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}
	public String getInvPayee() {
		return invPayee;
	}
	public void setInvPayee(String invPayee) {
		this.invPayee = invPayee;
	}
	public String getInvType() {
		return invType;
	}
	public void setInvType(String invType) {
		this.invType = invType;
	}
	public Integer getIsAnonymous() {
		return isAnonymous;
	}
	public void setIsAnonymous(Integer isAnonymous) {
		this.isAnonymous = isAnonymous;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public float getMoneyPaid() {
		return moneyPaid;
	}
	public void setMoneyPaid(float moneyPaid) {
		this.moneyPaid = moneyPaid;
	}
	public String getOfficePhone() {
		return officePhone;
	}
	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}
	public float getOrderAmount() {
		return orderAmount;
	}
	public void setOrderAmount(float orderAmount) {
		this.orderAmount = orderAmount;
	}
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	public String getOrderSn() {
		return orderSn;
	}
	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}
	public Integer getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}
	public float getPayFee() {
		return payFee;
	}
	public void setPayFee(float payFee) {
		this.payFee = payFee;
	}
	public Integer getPayId() {
		return payId;
	}
	public void setPayId(Integer payId) {
		this.payId = payId;
	}
	public String getPayName() {
		return payName;
	}
	public void setPayName(String payName) {
		this.payName = payName;
	}
	public Integer getPayTime() {
		return payTime;
	}
	public void setPayTime(Integer payTime) {
		this.payTime = payTime;
	}
	public Integer getPoints() {
		return points;
	}
	public void setPoints(Integer points) {
		this.points = points;
	}
	public float getPointsValue() {
		return pointsValue;
	}
	public void setPointsValue(float pointsValue) {
		this.pointsValue = pointsValue;
	}
	public String getPostScript() {
		return postScript;
	}
	public void setPostScript(String postScript) {
		this.postScript = postScript;
	}
	public String getReferer() {
		return referer;
	}
	public void setReferer(String referer) {
		this.referer = referer;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public Integer getRegionId() {
		return regionId;
	}
	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}
	public float getSellerCredit() {
		return sellerCredit;
	}
	public void setSellerCredit(float sellerCredit) {
		this.sellerCredit = sellerCredit;
	}
	public Integer getSellerEvaluation() {
		return sellerEvaluation;
	}
	public void setSellerEvaluation(Integer sellerEvaluation) {
		this.sellerEvaluation = sellerEvaluation;
	}
	public float getShippingFee() {
		return shippingFee;
	}
	public void setShippingFee(float shippingFee) {
		this.shippingFee = shippingFee;
	}
	public Integer getShippingId() {
		return shippingId;
	}
	public void setShippingId(Integer shippingId) {
		this.shippingId = shippingId;
	}
	public String getShippingName() {
		return shippingName;
	}
	public void setShippingName(String shippingName) {
		this.shippingName = shippingName;
	}
	public Integer getShipTime() {
		return shipTime;
	}
	public void setShipTime(Integer shipTime) {
		this.shipTime = shipTime;
	}
	public String getSignBuilding() {
		return signBuilding;
	}
	public void setSignBuilding(String signBuilding) {
		this.signBuilding = signBuilding;
	}
	public Integer getStoreId() {
		return storeId;
	}
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	public String getToBuyer() {
		return toBuyer;
	}
	public void setToBuyer(String toBuyer) {
		this.toBuyer = toBuyer;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getUserIp() {
		return userIp;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	
	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof DmpOrderInfo)) return false;
		else {
			DmpOrderInfo dmpOrderInfo = (DmpOrderInfo) obj;
			if (null == this.getOrderId() || null == dmpOrderInfo.getOrderId()) return false;
			else return (this.getOrderId().equals(dmpOrderInfo.getOrderId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getOrderId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getOrderId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}
	
	public String toString()
	{
		return super.toString();
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public float getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(float marketPrice) {
		this.marketPrice = marketPrice;
	}
	
}
